package com.itheima.springbootsecurity.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author faithwu
 * @since 2024-07-12
 */
@Getter
@Setter
@TableName("resource")
public class Resource implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 资源路径
     */
    @TableField("path")
    private String path;

    /**
     * 资源描述
     */
    @TableField("description")
    private String description;

    /**
     * 是否需要鉴权
     */
    @TableField("auth")
    private Boolean auth;

    /**
     * 创建人id
     */
    @TableField("create_user")
    private Integer createUser;

    /**
     * 更新人id
     */
    @TableField("update_user")
    private Integer updateUser;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;
}
